<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTradingCoinIntroduceTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('trading_coin_introduce', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('coin_id')->comment('币种id');
            $table->unsignedDecimal('price')->comment('众筹价格');
            $table->string('paper')->comment('白皮书');
            $table->string('website')->comment('官网');
            $table->string('hash')->comment('区块查询');
            $table->longText('introduce')->comment('简介');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('trading_coin_introduce');
    }
}
